package com.uml.umlwork.dto.user;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @author Siki
 * @date 2020/12/22
 */

@ApiModel("修改密码DTO")
@Getter
@Setter
@NoArgsConstructor
public class UpdateUserDTO {
    @ApiModelProperty("旧密码")
    @NotNull(message = "旧密码不能为空")
    String oldPassword;

    @ApiModelProperty("新密码")
    @NotNull(message = "新密码不能为空")
    String newPassword;

    @ApiModelProperty("再次输入")
    @NotNull(message = "二次输入不能为空")
    String againPassword;
}
